package com.project.user.entity.entitly;

public class UserInfo {
    public UserInfo(String userId, String userName, String userPassword, String userPhonenumber) {
        this.userId = userId;
        this.userName = userName;
        this.userPassword = userPassword;
        this.userPhonenumber = userPhonenumber;
    }

    public UserInfo(String phone) {
        this.userPhonenumber = phone;
    }

    public UserInfo() {

    }

    private Integer id;

    private String userId;

    private String userName;

    private String userPassword;

    private String userPhonenumber;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId == null ? null : userId.trim();
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName == null ? null : userName.trim();
    }

    public String getUserPassword() {
        return userPassword;
    }

    public void setUserPassword(String userPassword) {
        this.userPassword = userPassword == null ? null : userPassword.trim();
    }

    public String getUserPhonenumber() {
        return userPhonenumber;
    }

    public void setUserPhonenumber(String userPhonenumber) {
        this.userPhonenumber = userPhonenumber == null ? null : userPhonenumber.trim();
    }

    @Override
    public String toString() {
        return "UserInfo{" +
                "id=" + id +
                ", userId='" + userId + '\'' +
                ", userName='" + userName + '\'' +
                ", userPassword='" + userPassword + '\'' +
                ", userPhonenumber='" + userPhonenumber + '\'' +
                '}';
    }
}
